package com.megagao.production.ssm.controller;

import java.util.Map;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import com.megagao.production.ssm.util.CollectionsFactory;

@Controller
public class subLoginController {
     
	@RequestMapping("/subLogin")
	@ResponseBody
	public Map<String,Object> subLogin(@RequestParam String username,
			                           @RequestParam String password){
		Map<String,Object> map = CollectionsFactory.newHashMap();
		map.put("msg","用于测试");
		System.out.println("username:"+username+"---password:"+password);
		return map;
	}
}
